<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="/common/_container :: htmlhead"></head>
<body>
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>角色管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3">
                            	
                                	<div class="input-group">
								   		<div class="input-group-btn">
								        	<button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">角色名称</button>
								    	</div>
								    	<input type="text" class="form-control" id="condition" placeholder="角色名称" />
									</div>
                            	
                            </div>
                            <div class="col-sm-3">
                            	<div class="row">
									<div class="col-lg-10 col-sm-10">
										 <button type="button" class="btn btn-primary" onclick="Role.search()" >
								    		<i class="fa fa-search"></i>&nbsp;搜索
										</button>
	                            		<button type="button" class="btn btn-primary button-margin" onclick="Role.resetSearch()" >
								    		<i class="fa fa-trash"></i>&nbsp;重置
										</button>       
									</div>
								</div>
                            </div>
                        </div>
                        <div class="hidden-xs" id="roleTableToolbar" role="group">
                        	<shiro:hasPermission name="role_add"> 
                        	<button type="button" class="btn btn-primary" onclick="Role.openAddRole()" >
								 <i class="fa fa-plus"></i>&nbsp;添加
							</button>
							</shiro:hasPermission>
							<shiro:hasPermission name="role_edit">  
							<button type="button" class="btn btn-primary button-margin" onclick="Role.openChangeRole()" >
								  <i class="fa fa-edit"></i>&nbsp;修改
							</button>
							</shiro:hasPermission>
							<shiro:hasPermission name="role_view">  
							<button type="button" class="btn btn-primary button-margin" onclick="Role.openViewRole()" >
								  <i class="fa fa-bars"></i>&nbsp;查看详情
							</button>
							</shiro:hasPermission>
							<shiro:hasPermission name="role_remove"> 
                            <button type="button" class="btn btn-primary button-margin" onclick="Role.delRole()" >
								  <i class="fa fa-remove"></i>&nbsp;删除
							</button>
							</shiro:hasPermission>
							<shiro:hasPermission name="	role_setAuthority"> 
							<button type="button" class="btn btn-primary button-margin" onclick="Role.assign()" >
								  <i class="fa fa-user-secret"></i>&nbsp;权限配置
							</button>
							</shiro:hasPermission>   
							
							<shiro:hasPermission name="role_sms_assign"> 
							<button type="button" class="btn btn-primary button-margin" onclick="Role.smsAssign()" >
								  <i class="fa fa-user-secret"></i>&nbsp;短信权限配置
							</button>
							 </shiro:hasPermission>
							 <shiro:hasPermission name="role_app_top"> 
							<button type="button" class="btn btn-primary button-margin" onclick="Role.appTop()" >
								  <i class="fa fa-user-secret"></i>&nbsp;app首页配置
							</button>
							 </shiro:hasPermission>
                        </div>
                        <table id="roleTable" data-mobile-responsive="true" data-click-to-select="true">
						    <thead>
						        <tr>
						           <th data-field="selectItem" data-checkbox="true"></th>
						       </tr>
						    </thead>
						</table>
                        <!-- <#table id="roleTable"/> -->
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script th:src="@{/static/modular/system/role/role.js}"></script>
</body>
</html>
